<form action="../app/<tpl> $app_module.app_module_sign </tpl>/system.php?action=apply_audit_update" method="post" name="form_update" id="form_update">
<input type="hidden" name="caa_id" id="caa_id" value="<tpl> $act_apply_row.caa_id </tpl>" />
<table class="from_table">
	<tr>
		<th class="th3"><tpl> $langSysCAGoodsName </tpl>:</th>
		<td width="530" class="td1"><tpl> $act_apply_row.cag_name </tpl></td>
	</tr>
	<tr>
		<th class="th3"><tpl> $langSysCAGoodsPic </tpl>:</th>
		<td width="530" class="td1"><img src="<tpl> $site_url </tpl>/<tpl> $act_apply_row.cag_pic </tpl>" width="100px;" height="100px;" /></td>
	</tr>
	<tr>
		<th class="th3"><tpl> $langSysCAApplyNum </tpl>:</th>
		<td width="530" class="td1"><tpl> $act_apply_row.caa_num </tpl></td>
	</tr>
	<tr>
		<th class="th3"><tpl> $langSysCAApplyCredits </tpl>:</th>
		<td width="530" class="td1"><tpl> $act_apply_row.caa_credits </tpl></td>
	</tr>
	<tr>
		<th class="th3"><tpl> $langSysCAApplyTotalCredits </tpl>:</th>
		<td width="530" class="td1"><tpl> $act_apply_row.total_credits </tpl></td>
	</tr>
	<tr>
		<th class="th3"><tpl> $langSysCAState </tpl>:</th>
		<td width="530" class="td1">
			<tpl> if $act_apply_row.caa_state eq '0' </tpl>
			<input type="radio" name="caa_state" id="caa_state_one" value="1" checked="checked" /><label for="caa_state_one"><tpl> $langSysCAApplyAllow </tpl></label>
			<input type="radio" name="caa_state" id="caa_state_two" value="2" /><label for="caa_state_two"><tpl> $langSysCAApplyDeny </tpl></label>
			<tpl> /if </tpl>
			<tpl> if $act_apply_row.caa_state eq '1' </tpl>
				<tpl> $langSysCAApplyPassed </tpl>
			<tpl> /if </tpl>
			<tpl> if $act_apply_row.caa_state eq '2' </tpl>
				<tpl> $langSysCAApplyDenyed </tpl>
			<tpl> /if </tpl>
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<div style="float:left; padding-left:20px">
				<tpl> if $act_apply_row.caa_state eq '0' </tpl>
					<span class="btn_left"><input type="submit" value="<tpl> $langSysCAApplySet </tpl>" class="btn_submit" /></span>
				<tpl> /if </tpl>
				<span class="btn_left"><input type="button" name="return_button" id="return_button" class="btn_submit" value="<tpl> $langSysCAReturnList </tpl>" /></span>
			</div>
		</td>
	</tr>
</table>
</form>
<script>
$(document).ready(function() {
	$('#return_button').click(
		function(){
			ShowDiv	= 'result_content';
			getPageContent("../app/<tpl> $app_module.app_module_sign </tpl>/system.php?action=apply_list&id=<tpl> $act_apply_row.ca_id </tpl>");
		}
	);

	//添加
	var options = {
		beforeSubmit:  function(){showLoading(showSaveText);},
		success:       function(msg){
							hideLoading();
							showMessage(msg.message,msg.type);
							if(msg.type == '1'){
								ShowDiv	= 'result_content';
								getPageContent("../app/<tpl> $app_module.app_module_sign </tpl>/system.php?action=apply_list&id=<tpl> $act_apply_row.ca_id </tpl>");
							}
						},
		type:      'post',
		dataType:  'json'
	};
	
	//对添加表单做的验证定义
	$("#form_update").validate({
		errorClass: "wrong",
		rules: {
		},
		messages: {
		},
		submitHandler: function() {
			$('#form_update').ajaxSubmit(options);
		}
	});
});
</script>